package com.zsy.provider.api.feign;

import com.zsy.provider.api.feign.hystrix.UacFeiginFallbackFactory;
import com.zsy.provider.api.service.UacService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;

/**
 * 用户中心feignapi
 */
@FeignClient(value = "springcloud-provider-uac",//绑定注册中心服务提供方
fallbackFactory = UacFeiginFallbackFactory.class,
url = "${uac_provider_developServerUrl:}"//此配置是为了 调用本地服务，方便调试，生产要把配置文件里的配置去掉，否则会报错

//fallback = UacFeignFallback.class    别搞错了
)
@Service
public interface UacFeignApi extends UacService {
}
